package cn.zhoutingrui.pethome.emp.service;

import cn.zhoutingrui.pethome.emp.domain.Employee;
import cn.zhoutingrui.pethome.emp.domain.EmployeeBo;
import cn.zhoutingrui.pethome.emp.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    List<Employee> findAll();
    //查询一个
    Employee findById(Long id);
    //按条件查询
    List<Employee> findQuery(EmployeeQuery query);
    //查询条数
    Long findByQueryCount(EmployeeQuery query);
    //添加
    void add(Employee department);
    //修改
    void update(Employee department);
    //删除
    void delete(Long id);
    //查找是否存在下级部门
    Long findSon(Long id);
    //批量删除
    void batchDelete(List<Long> ids);
}
